﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Shop.Models
{
    public class Category
    {
        public int Id { get; set; }

        [Display(Name = "Category description")]
        public string Description { get; set; }

        [Required]
        [Display(Name = "Category name")]
        public string Name { get; set; }

        public ICollection<Entity.Products.Product> Products { get; set; }
    }
}